# $Id: PKGBUILD 79321 2012-11-02 19:11:52Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-sub-uplevel
pkgver=0.24
pkgrel=1
pkgdesc="apparently run a function in a higher stack frame "
arch=('any')
url="http://search.cpan.org/dist/Sub-Uplevel"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Sub-Uplevel-$pkgver.tar.gz)
md5sums=('bea4037e8b2a0df563e25e6e44cb2e73')

build() {
  cd  $srcdir/Sub-Uplevel-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
